load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers")

cc_library(
    name = "client_lib",
    srcs = [
        "gizmo.cpp",
        ":compile_headers_please",
    ],
    hdrs = ["gizmo.h"],
    copts = ["-Wno-pragma-once-outside-header"],
    features = ["layering_check"],
    deps = [
        "//experimental/bazel_test/base",
        "//experimental/bazel_test/core",
    ],
)

cc_binary(
    name = "client",
    srcs = ["main.cpp"],
    features = ["layering_check"],
    deps = [":client_lib"],
)

generate_cpp_files_for_headers(
    name = "compile_headers_please",
    headers = ["gizmo.h"],
)
